﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ImModels.View
{
    public class ChatMsgView
    {
        public ChatFromUser user { get; set; }

        public ChatToUser receiver { get; set; }
    }


    /// <summary>
    /// 发送者用户信息
    /// </summary>
    public class ChatFromUser
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string username { get; set; } = "";


        /// <summary>
        /// 头像
        /// </summary>
        public string avatar { get; set; } = "";

        /// <summary>
        /// 用户ID
        /// </summary>
        public long id { get; set; } = 0;


        /// <summary>
        /// 是否为用户 ?
        /// </summary>
        public bool user { get; set; }


        /// <summary>
        /// 消息内容
        /// </summary>
        public string content { get; set; } = "";
    }


    /// <summary>
    /// 接受者用户信息
    /// </summary>
    public class ChatToUser
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string username { get; set; } = "";

        /// <summary>
        /// friend group online offline
        /// </summary>
        public string type { get; set; } = "";

        /// <summary>
        /// 头像
        /// </summary>
        public string avatar { get; set; } = "";

        /// <summary>
        /// 接受者用户ID  如果为 friend时为用户ID，如果是 group时为群ID
        /// </summary>
        public long id { get; set; } = 0;

        /// <summary>
        /// 历史时间
        /// </summary>
        public long historyTime { get; set; } = 0;

        /// <summary>
        /// 群名称
        /// </summary>
        public string groupname { get; set; } = "";
    }
}
